import { request } from '@/network/http.js'
export const login = p => request('post', '/login/verify_second', p) // 后台登录
export const delImg = p => request('post', '/school/delete_img', p) // 删除图片

export const categoryList = p => request('post', '/category/list', p) // 获取分类列表
export const categoryEdit = p => request('post', '/category/getOnly', p) // 获取单个分类
export const categoryDelete = p => request('post', '/category/delete', p) // 删除分类
export const categoryInc = p => request('post', '/category/add', p) // 添加分类
export const categorySave = p => request('post', '/category/edit', p) // 编辑分类
export const editCategorySort = p => request('post', '/category/editSort', p) // 编辑分类排序

export const scopeList = p => request('post', '/scope/list', p) // 获取经营范围列表
export const scopeEdit = p => request('post', '/scope/getOnly', p) // 获取单个经营范围
export const scopeDelete = p => request('post', '/scope/delete', p) // 删除经营范围
export const scopeInc = p => request('post', '/scope/add', p) // 添加经营范围
export const scopeSave = p => request('post', '/scope/edit', p) // 编辑单个经营范围

export const configList = p => request('post', '/config/list', p) // 系统配置列表
export const configOnly = p => request('post', '/config/only', p) // 获取单个配置
export const configEdit = p => request('post', '/config/edit', p) // 编辑系统配置

export const platList = p => request('post', '/plat/list', p) // 获取平台方列表
export const platOnly = p => request('post', '/plat/only', p) // 获取单个平台方
export const platDelete = p => request('post', '/plat/delete', p) // 删除平台方
export const platAdd = p => request('post', '/plat/add', p) // 添加平台方
export const platEdit = p => request('post', '/plat/edit', p) // 编辑平台方
export const platChangePwd = p => request('post', '/plat/changePwd', p) // 获取单个经营范围

export const platSimpleList = p => request('post', '/plat/simpleList', p) // 获取简单平台方列表
export const operateSuperList = p => request('post', '/operate/superList', p) // 获取单个经营范围
export const operatePlatList = p => request('post', '/operate/platList', p) // 获取运营列表
export const operateOnly = p => request('post', '/operate/only', p) // 获取单个运营
export const operateDelete = p => request('post', '/operate/delete', p) // 删除单个运营
export const operateAdd = p => request('post', '/operate/add', p) // 添加运营方
export const operateEdit = p => request('post', '/operate/edit', p) // 编辑运营方
export const operateChangePwd = p => request('post', '/operate/changePwd', p) // 修改密码
export const operategetConf = p => request('post', '/operate/getConf', p) // 运营获取配置
export const operateEditConf = p => request('post', '/operate/confEdit', p) // 运营编辑配置
export const getSenderList = p => request('post', '/operate/getSenderList', p) // 获取骑手列表
export const getOvertimeList = p => request('post', '/operate/getOvertimeList', p) // 获取超时配送列表
export const overtimeDetail = p => request('post', '/operate/overtimeDetail', p) // 获取超时详情

export const operateSimpleList = p => request('post', '/operate/simpleList', p) // 获取运营商简单列表
export const schoolList = p => request('post', '/school/school_list', p) // 获取学校列表
export const schoolFind = p => request('post', '/school/school_find', p) // 获取单个学校
export const deleteSchool = p => request('post', '/school/delete_school', p) // 删除学校
export const schoolIncrease = p => request('post', '/school/increase', p) // 添加学校
export const schoolEdit = p => request('post', '/school/school_edit', p) // 编辑学校

export const financeList = p => request('post', '/finance/list', p) // 获取财务列表
export const financeOnly = p => request('post', '/finance/only', p) // 获取单个财务
export const financeAdd = p => request('post', '/finance/add', p) // 添加财务
export const financeEdit = p => request('post', '/finance/edit', p) // 编辑财务
export const financeDelete = p => request('post', '/finance/delete', p) // 删除财务
export const financeChangePwd = p => request('post', '/finance/changePwd', p) // 修改财务密码

export const statisticalOrderList = p => request('post', '/statistical/orderList', p) // 获取划账列表
export const statisticalDrawInfo = p => request('post', '/statistical/drawInfo', p) // 获取划账详情
export const statisticalDraw = p => request('post', '/statistical/draw', p) // 划账操作
export const logList = p => request('post', '/statistical/logList', p) // 划账记录
export const delLog = p => request('post', '/statistical/delLog', p) // 删除划账记录

// =================学校管理==============================
export const getSchoolList = p => request('post', '/school/getOwnList', p) // 获取学校列表
export const getDrawInfo = p => request('post', '/school/getDrawInfo', p) // 获取学校划账费用
export const editDraw = p => request('post', '/school/editDraw', p) // 编辑学校划账费用
export const changeAllowOrder = p => request('post', '/school/changeAllowOrder', p) // 学校允许下单
export const changeGoUp = p => request('post', '/school/changeGoUp', p) // 学校允许上楼
export const getSchoolRolleList = p => request('post', '/schoolRole/list', p) // 获取学校管理员列表
export const addRole = p => request('post', '/schoolRole/add', p) // 添加学校管理员
export const changeRoleStatus = p => request('post', '/schoolRole/changeStatus', p) // 修改管理员状态
export const getSingleRole = p => request('post', '/schoolRole/getOnly', p) // 获取单个管理员
export const editRole = p => request('post', '/schoolRole/edit', p) // 编辑管理员
export const delRole = p => request('post', '/schoolRole/delete', p) // 删除管理员
export const getBoxList = p => request('post', '/qrcode/list', p) // 获取配送箱列表
export const addBox = p => request('post', '/qrcode/add', p) // 添加配送箱
export const delBox = p => request('post', '/qrcode/delete', p) // 删除配送箱
export const getDorList = p => request('post', '/Storied/storied_list', p) // 获取宿舍列表
export const getRoleTypeList = p => request('post', '/schoolRole/getRoleTypeList', p) // 获取可用管理员列表
export const StoriedInc = p => request('post', '/Storied/increase', p) // 添加宿舍楼
export const deleteStoried = p => request('post', '/Storied/delete_storied', p) // 删除宿舍楼
export const storiedFind = p => request('post', '/Storied/storied_find', p) // 获取单个宿舍楼
export const storiedEdit = p => request('post', '/Storied/storied_edit', p) // 编辑宿舍
export const getSchoolDeliveryList = p => request('post', '/school/deliveryList', p) // 费用列表
// export const addConf = p => request('post', '/floorConf/add', p) // 添加配置
// export const delConf = p => request('post', '/floorConf/delete', p) // 删除配置
// export const getSingleConf = p => request('post', '/floorConf/getOnly', p) // 获取单个配置
export const editDelivery = p => request('post', '/school/editDelivery', p) // 编辑配置
export const getFloorList = p => request('post', '/floor/list', p) // 获取楼层列表
export const getConfSimpleList = p => request('post', '/floorConf/getSimple', p) // 获取楼层配送费
export const addFloor = p => request('post', '/floor/add', p) // 添加楼层
export const deleteFloor = p => request('post', '/floor/delete', p) // 删除楼层
export const getFloorOnly = p => request('post', '/floor/getOnly', p) // 获取单个楼层
export const editFloor = p => request('post', '/floor/edit', p) // 编辑楼层
export const getUnbindUser = p => request('post', '/floor/getUnbindUser', p) // 获取未绑定的用户
export const bindUser = p => request('post', '/floor/bindUser', p) // 绑定用户
export const unbindUser = p => request('post', '/floor/unbindUser', p) // 解绑用户
export const getBannerList = p => request('post', '/banner/lst', p) // 获取广告位
export const addBanner = p => request('post', '/banner/add', p) // 添加广告位
export const delBanner = p => request('post', '/banner/delete', p) // 删除广告位
export const getBannerOnly = p => request('post', '/banner/getOnly', p) // 获取单个广告位
export const editBanner = p => request('post', '/banner/edit', p) // 编辑广告位
export const changeBannerStatus = p => request('post', '/banner/changeStatus', p) // 修改广告位状态
// =================餐盒费管理==============================
export const getGoodsList = p => request('post', '/goods/list', p) // 获取商品列表
export const setFee = p => request('post', '/goods/setFee', p) // 设置餐盒费
export const typeChange = p => request('post', '/goods/typeChange', p) // 餐盒费收取方设置

// 学校财务
export const schoolFinanceList = p => request('post', '/schoolFinance/list', p) // 获取学校财务列表
export const schoolFinanceOnly = p => request('post', '/schoolFinance/only', p) // 获取单个学校财务
export const schoolFinanceAdd = p => request('post', '/schoolFinance/add', p) // 添加学校财务
export const schoolFinanceEdit = p => request('post', '/schoolFinance/edit', p) // 编辑学校财务
export const schoolFinanceDelete = p => request('post', '/schoolFinance/delete', p) // 删除学校财务
export const schoolFinanceChangePwd = p => request('post', '/schoolFinance/changePwd', p) // 修改学校财务密码

export const getStoreList = p => request('post', '/operate/getStoreList', p) // 获取商铺列表
export const commentList = p => request('post', '/comment/list', p) // 获取用户评论列表
export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示

export const shopList = p => request('post', '/school/shop_list', p) // 获取商户列表
export const editShop = p => request('post', '/school/edit_shop', p) // 编辑商户
export const shopSort = p => request('post', '/school/shop_sort', p) // 商户排序
export const changeSpecial = p => request('post', '/school/changeSpecial', p) // 类型更改
export const addAdmin = p => request('post', '/school/addAdmin', p) // 添加商户后台管理员
export const storeAdminOnly = p => request('post', '/school/storeAdminOnly', p) // 获取商户后台管理员信息
export const editAdmin = p => request('post', '/school/editAdmin', p) // 编辑商户后台管理员
export const editPwdAdmin = p => request('post', '/school/editPwdAdmin', p) // 编辑商户后台管理员密码
export const changeAdminStatus = p => request('post', '/school/changeAdminStatus', p) // 编辑商户后台管理员状态
export const getBindDor = p => request('post', '/school/getBindDor', p) // 获取绑定的楼栋
export const bindDor = p => request('post', '/school/bindDor', p) // 绑定楼栋

export const userList = p => request('post', '/user/list', p) // 用户列表
export const editUser = p => request('post', '/user/changeStatus', p) // 编辑用户
export const orderTakingChange = p => request('post', '/user/orderTakingChange', p) // 系统接单状态修改

export const goodsList = p => request('post', '/backStore/list', p) // 商品列表
export const changeGoodsStatus = p => request('post', '/backStore/changeGoodsStatus', p) // 商品状态修改
export const editNum = p => request('post', '/backStore/editNum', p) // 编辑商品可售数量
export const findCateList = p => request('post', '/backStore/findCateList', p) // 商品分类列表
export const addGoods = p => request('post', '/backStore/addGoods', p) // 添加商品
export const goodsOnly = p => request('post', '/backStore/goodsOnly', p) // 获取商品单个
export const editGoods = p => request('post', '/backStore/editGoods', p) // 编辑商品
export const deleteGoods = p => request('post', '/backStore/deleteGoods', p) // 删除商品
export const getSellList = p => request('post', '/backStore/getSellList', p) // 获取销售列表
export const getOrderList = p => request('post', '/backStore/getOrderList', p) // 获取订单列表
export const multiOff = p => request('post', '/backStore/multiOff', p) // 商品批量下架

// 菜品管理
export const addGoodsConf = p => request('post', '/goodsConf/add', p) // 添加菜品
export const goodsConfList = p => request('post', '/goodsConf/list', p) // 菜品列表
export const editGoodsConfStock = p => request('post', '/goodsConf/editStock', p) // 编辑菜品库存
export const changeGoodsConfShow = p => request('post', '/goodsConf/changeShow', p) // 编辑商品上下架
export const getGoodsConfOnly = p => request('post', '/goodsConf/getOnly', p) // 获取菜品单个
export const editGoodsConf = p => request('post', '/goodsConf/edit', p) // 编辑菜品
export const deleteGoodsConf = p => request('post', '/goodsConf/del', p) // 删除菜品
export const confMultiOff = p => request('post', '/goodsConf/confMultiOff', p) // 菜品批量下架

// 商家财务
export const storeFinanceList = p => request('post', '/storeFinance/list', p) // 获取商家财务列表
export const storeFinanceOnly = p => request('post', '/storeFinance/only', p) // 获取单个商家财务
export const storeFinanceAdd = p => request('post', '/storeFinance/add', p) // 添加商家财务
export const storeFinanceEdit = p => request('post', '/storeFinance/edit', p) // 编辑商家财务
export const storeFinanceDelete = p => request('post', '/storeFinance/delete', p) // 删除商家财务
export const storeFinanceChangePwd = p => request('post', '/storeFinance/changePwd', p) // 修改商家财务密码
// 商家财务-订单记录
export const getFinanceOrderList = p => request('post', '/backStore/getFinanceOrderList', p) // 商家财务获取订单列表
// 学校财务-订单记录
export const getSchFinanceOrderList = p => request('post', '/backStore/getSchFinanceOrderList', p) // 学校财务获取订单列表
